# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-atomicwrites
_pkgname=python-atomicwrites
pkgver=1.4.0
pkgrel=2
pkgdesc="Powerful Python3 library for atomic file writes"
url="https://github.com/untitaker/python-atomicwrites"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
options="!check"  # requires pytest which depends on this aport (cyclic dep)
source="https://github.com/untitaker/python-atomicwrites/archive/$pkgver/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-atomicwrites" # Backwards compatibility
provides="py-atomicwrites=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="49b0eaa1058ebe1501756e6186264973537f5dea1c1d653f0dc7b2aa03635459f935a16a5a8fec4abfb55d29078df9d09f47bd2e7766a5aaf3063fe1261f63a1  python-atomicwrites-1.4.0.tar.gz"
